#!/usr/bin/python
Import ('env')

sources = env.Glob('intern/*.c')

incs = '. #/intern/guardedalloc ../blenlib ../blenkernel'
incs += ' ../makesdna ../readblenfile ../include'
incs += ' ../render/extern/include'

incs += ' ' + env['BF_ZLIB_INC']

defs = ''
if env['WITH_BF_VERSE']:
	defs += ' WITH_VERSE'
	incs += ' ' + env['BF_VERSE_INCLUDE']

env.BlenderLib ( 'bf_blenloader', sources, Split(incs), Split(defs), libtype=['core','player'], priority = [70, 30] )
